You can call the following on a Flow to register listeners for particular
events:
onEach(), to be notified when an item is emitted by theFlowonCompletion(), to be notified when theFlowis closed
You can learn more about this in:
Tags: